<template>
    <div>
        <div style="height:0.9rem"></div>
        <div class="xyinfo-box">
            <img :src="data.images" alt="">
            <p class="name">{{data.name}}</p>
            <p class="time">发布时间：{{data.create_time}}</p>
            <p class="title">学历</p>
            <ul>
                <li v-html="data.education"></li>
            </ul>
            <p class="title">职务</p>
            <ul>
                <li v-html="data.post"></li>
            </ul>
        </div>
    </div>
</template>
<script>
import {format} from '../../public/utils'
export default {
    data () {
        return {
            data:'',
        }
    },

    created () {
        this.apiDetail();
    },
    methods: {
        // 会员详情 
        async apiDetail(){
            let id = this.$route.params.id;
            let {data} = await this.https.get(this.api.apiDetail,{id:id});
            this.$store.commit('setTitle',data.name);
            data.create_time = format(data.create_time);
            this.data = data;
        }
    }
}
</script>
<style lang="less" scoped>
@import url(../../assets/css/member/hyfcinfo.less);
</style>


